package com.syxp.pda.service.base.impl;

import org.springframework.transaction.annotation.Transactional;

import com.syxp.pda.core.dao.BaseDao;
import com.syxp.pda.core.service.impl.BaseServiceImpl;
import com.syxp.pda.entity.base.DeviceBaseInfo;
import com.syxp.pda.service.base.DeviceBaseInfoService;

@Transactional
public class DeviceBaseInfoServiceImpl extends BaseServiceImpl<DeviceBaseInfo> implements DeviceBaseInfoService {

	
	public DeviceBaseInfoServiceImpl(BaseDao<DeviceBaseInfo> baseDao) {
		super(baseDao) ;
	}
	
	public void updateDeviceZone(DeviceBaseInfo deviceBaseInfo) {
		DeviceBaseInfo device = loadService(deviceBaseInfo.getDeviceInfoID()) ;
		device.setZoneID(deviceBaseInfo.getZoneID());
		updateService(device) ;
	}
}
